* xt-mouse.el (xterm-mouse-event-read): Fix for characters > 127
authorJan D <jan.h.d@swipnet.se>
Wed, 14 Jul 2010 17:53:42 +0000 (19:53 +0200)
committerJan D <jan.h.d@swipnet.se>
Wed, 14 Jul 2010 17:53:42 +0000 (19:53 +0200)
now that unicode is used (Bug#6594).

lisp/ChangeLog
lisp/xt-mouse.el

index 30f834659fc9fc33b0025b7d9f429045f9554a17..7090524c4c37b928f3c81bc7eb347ad1134e6128 100644 (file)
@@ -1,3 +1,8 @@
+2010-07-14  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xt-mouse.el (xterm-mouse-event-read): Fix for characters > 127
+       now that unicode is used (Bug#6594).
+
 2010-07-14  Chong Yidong  <cyd@stupidchicken.com>
 
        * simple.el (push-mark-command): Set the selection if
index 2d38c6e827cdd0ef6a1bdcb4e4514e48370d797b..f802103fbd7a872db95e4d3d1c07636c47310913 100644 (file)
 ;; read xterm sequences above ascii 127 (#x7f)
 (defun xterm-mouse-event-read ()
   (let ((c (read-char)))
-    (if (< c 0)
-        (+ c #x8000000 128)
+    (if (> c #x3FFF80)
+        (+ 128 (- c #x3FFF80))
       c)))
 
 (defun xterm-mouse-truncate-wrap (f)